<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MyISERN 1.3 - Home</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" media="screen" /></head>
<body>
<!-- start header -->
<div id="logo">
  <h1><a href="#">MyISERN 1.3</a></h1>
  <c:if test="${not empty user}">
       <p style="font-weight:bold; font-size:small"><stripes:link href="Logout.action" event="logout" >Logout</stripes:link></p>
  </c:if>
</div>
<div id="menu">
  <ul>
    <li class="current_page_item"><a href="index.jsp">Home</a></li>
    <li><stripes:link href="/Researchers.action" event="showAllResearchers" style="menu">View All Researchers</stripes:link></li>
    <li><stripes:link href="/Organizations.action" event="showAllOrganizations" style="menu">View All Organizations</stripes:link></li>
    <li><stripes:link href="/Collaborations.action" event="showAllCollaborations" style="menu">View All Collaborations</stripes:link></li>
  </ul>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
  <div id="page-bg">
    <!-- start content -->
    <div id="content">
      <div class="post">
        <h2 class="title"><a href="#">Welcome to Our Website!</a></h2>
        <p class="byline"><small>This is the initial version of MyIsern 1.3<a href="#"></a></small></p>
        <div class="entry">
        <p><strong>This is the initial viewing of the MyISERN Gold team. I have tried to make this site clean and readable but will always welcome comments and criticizism.</strong></p>
      </div>
  </div>
  <!-- login content -->
  <stripes:form method="post" id="loginForm" action="/Login.action"><stripes:errors/>
      <c:choose>
    <c:when test="${not empty user}">
      <p>You have login succesfully!</p>
    </c:when>
    
    <c:otherwise> 
        <table>
          <tr>
              <td style="font-weight: bold;"><label for="usernameField"/>Username:</td>
              <td><stripes:text id="usernameField" name="username"/></td>
          </tr>
          <tr>
              <td style="font-weight: bold;"><label for="passwordField"/>Password:</td>
              <td><stripes:password id="passwordField" name="password"/></td>
          </tr>
          <tr>
              <td><stripes:submit name="login" value="Login"/></td>
          </tr>
        </table>
      
    </c:otherwise>
  </c:choose>
</stripes:form>
  
</div>
  <!-- end content -->
    <!-- start sidebar -->
    <div id="sidebar">
      <ul>
        <li>
          <h2>Quick Links</h2>
          <ul>
            <li><a href="addResearcher.jsp">Add New Researcher</a></li>
            <li><a href="addOrganization.jsp">Add New Organization</a></li>
            <li><a href="addCollaboration.jsp">Add New Collaboration</a></li>
            <li><stripes:link href="/Report.action" event="showReport">Sanity Report</stripes:link></li>
            <li><a href="http://code.google.com/p/myisern-1-gold/">Contact Us!</a></li>
          </ul>
        </li>
        <li></li>
        <li>
          <h2>&nbsp;</h2>
        </li>
      </ul>
    </div>
    <!-- end sidebar -->
    <div style="clear: both;">&nbsp;</div>
  </div>
</div>
<!-- end page -->
<div id="footer">
  <p>&copy;2007 All Rights Reserved.</p>
</div>
</body>
</html>
